package cn.lg.soar.message.event;

import cn.lg.soar.message.api.enums.WebSocketEventTypeEnum;

import java.time.Clock;

/**
 * websocket打开事件
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class WebSocketCloseEvent extends WebSocketEvent {

    public WebSocketCloseEvent(String tokenId, int count) {
        super(WebSocketEventTypeEnum.close, tokenId, count);
    }

    public WebSocketCloseEvent(String tokenId, int count, Clock clock) {
        super(WebSocketEventTypeEnum.close, tokenId, count, clock);
    }

    @Override
    public String toString() {
        return "WebSocketCloseEvent{" +
                "clientId=" + clientId +
                ", count=" + source +
                '}';
    }
}
